﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ScreenMonitor.Common.File
{
    /// <summary>
    /// 为文件请求相关事件提供数据封装
    /// </summary>
    public sealed class FileRequestEventArgs : EventArgs
    {
        /// <summary>
        /// 表示事件包含的请求文件对象的实例
        /// </summary>
        public FileRequestObject RequestObject { get;private set; }
        /// <summary>
        /// 表示事件包含的回复文件对象的实例
        /// </summary>
        public FileRequestObject ResponceObject { get; set; }
        /// <summary>
        /// 获取或设置该事件是否应该继续执行
        /// </summary>
        public bool IsCanceled { get; set; }
        /// <summary>
        /// 通过指定的请求对象和回复对象初始化对象的实例
        /// </summary>
        /// <param name="RequestObj"></param>
        /// <param name="ResponceObj"></param>
        public FileRequestEventArgs(FileRequestObject RequestObj,FileRequestObject ResponceObj=null)
        {
            this.RequestObject = RequestObj;
            this.ResponceObject = ResponceObj;
        }
    }
}
